/*
* @Author: JINPENG
* @Date:   2018-08-08 20:32:42
* @Last Modified by:   JINPENG
* @Last Modified time: 2018-08-08 21:12:29
*/
'use strict';

var _mm = require('util/mm.js');
var _payment = {
       //获取订单支付信息
    getOrderPayment :  function(orderNumber,resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/order/pay.do'),
            data    : {
                orderNo : orderNumber
            },
            success : resolve,
            error   : reject
        });
       },
      getpaymetStatus : function(orderNumber,resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/order/query_order_pay_status.do'),
            data    : {
                orderNo : orderNumber
            },
            success : resolve,
            error   : reject
        });
       },
  }
module.exports = _payment;